inc-g-y += .

src-y += hal/am_hal_global.c
src-y += hal/am_hal_pwrctrl.c
src-y += hal/am_hal_clkmgr.c
src-y += hal/am_hal_spotmgr.c
src-y += hal/am_hal_spotmgr_pcm0_7.c
src-y += hal/am_hal_spotmgr_pcm2_0.c
src-y += hal/am_hal_spotmgr_pcm2_1.c
src-y += hal/am_hal_spotmgr_pcm2_2.c
src-y += hal/am_hal_stimer.c
src-y += hal/am_hal_queue.c
src-y += hal/am_hal_info.c
src-y += hal/am_hal_pin.c
src-y += hal/mcu/am_hal_bootrom_helper.c
src-y += hal/mcu/am_hal_cachectrl.c
src-y += hal/mcu/am_hal_clkgen.c
src-y += hal/mcu/am_hal_debug.c
src-y += hal/mcu/am_hal_interrupt.c
src-y += hal/mcu/am_hal_rtc.c
src-y += hal/mcu/am_hal_utils.c
src-y += hal/mcu/am_hal_mcuctrl.c
src-y += hal/mcu/am_hal_sysctrl.c
src-y += hal/mcu/am_hal_syspll.c
src-y += hal/mcu/am_hal_itm.c

ifeq ($(CONFIG_AMBIQ_HAL_USE_ADC), y)
src-y += hal/am_hal_adc.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_SDIO), y)
src-y += hal/mcu/am_hal_card.c
src-y += hal/mcu/am_hal_card_host.c
src-y += hal/mcu/am_hal_sdhc.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_TPIU), y)
src-y += hal/mcu/am_hal_tpiu.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_DCU), y)
src-y += hal/am_hal_dcu.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_GPIO), y)
src-y += hal/am_hal_gpio.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_HWINFO), y)
src-y += hal/mcu/am_hal_reset.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_TIMER), y)
src-y += hal/am_hal_timer.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_WDT), y)
src-y += hal/am_hal_wdt.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_UART), y)
src-y += hal/mcu/am_hal_uart.c
endif

ifneq ($(filter y,$(CONFIG_AMBIQ_HAL_USE_I2C) $(CONFIG_AMBIQ_HAL_USE_SPIC) $(CONFIG_AMBIQ_HAL_USE_SPI)),)
src-y += hal/mcu/am_hal_iom.c
src-y += hal/mcu/am_hal_cmdq.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_I2S), y)
src-y += hal/am_hal_i2s.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_MSPI), y)
src-y += hal/mcu/am_hal_mspi.c
src-y += hal/mcu/am_hal_cmdq.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_PDM), y)
src-y += hal/am_hal_pdm.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_USB), y)
src-y += hal/am_hal_usb.c
endif

ifeq ($(CONFIG_AMBIQ_HAL_USE_DSI), y)
src-y += hal/mcu/am_hal_dsi.c
endif
